-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(anta.tests): allow for positive or negative offset time zones #842
Conversation
Hello @Xel-Naha thanks for opening this PR - could you please look at adding some test to make sure we capture this in our CI? If you need pointers let me know! |
CodSpeed Performance ReportMerging #842 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added unit test for positive offset and rename original unit test to negative offset. @gmuloc mind reviewing and letting me know if anything else needs adding / changing? thanks!
|
hi @gmuloc, I just had a look at the failing test and I don't think this is any issue with the code (after all its a minor modification from existing code) however the pipeline seems to have issues downloading something:
i'm suspecting it might be something that needs reviewing on your end? |
yeah its on our side we need to check with people maintaining this service internally. |
Description
When testing ANTA logging format on switches with timezone Europe/London we got fail on the test VerifyLoggingTimestamp. Looking at the regex it seems to match on negative offsets:
r"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{6}-d{2}:\d{2}"
-d{2}:\d{2}"
to allow for positive offsets change this to allow either negative - or positive +
[+-]d{2}:\d{2}"